﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;

namespace YJKStairs.HYElevator.Manage
{
	internal class LevelEqualityComparer : IEqualityComparer<ViewPlan>
	{
		public bool Equals(ViewPlan ele1, ViewPlan ele2)
		{
			return ele1.GenLevel.Elevation == ele2.GenLevel.Elevation;
		}

		public int GetHashCode(ViewPlan obj)
		{
			return obj.ToString().GetHashCode();
		}
	}
}
